<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018\7\19 0019
 * Time: 17:51
 */
namespace app\api\controller\v1;
use app\api\model\TopicModel;
use think\Request;

class Topic
{
    /**获取题目
     * @param Request $request
     * @return \think\response\Json
     */
    public function get_topic(Request $request){
        //获取题目数据
        $str = TopicModel::getTopic($request);
        return json($str);
    }
}